package com.sky.mapper;

import com.sky.entity.AddressBook;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressBookMapper {

     void insert(AddressBook addressBook);

     List<AddressBook> list(AddressBook addressBook);

     AddressBook getByDefaultAndUserId(Long currentId);

     AddressBook getById(Long id);

     void update(AddressBook addressBook);

     void deleteById(Long id);
}
